<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

// Route::get('/', function () {
//     return view('welcome');
// });

Route::get('permissions', 'PermissionController@index')->name('permission.index');
Route::get('add', 'PermissionController@add')->name('permission.add');
Route::post('permissions', 'PermissionController@store')->name('permission.store');
Route::get('permissions/{permission}', 'PermissionController@edit')->name('permission.edit');
Route::patch('permissions/{permission}', 'PermissionController@update')->name('permission.update');
